// 疫情
import request from '@/utils/request'

export function getHealth(data) {
  return request({
    url: '/health/getPage',
    method: 'post',
    data: data
  })
}
// 删除
export function deleteHealth(id) {
  return request({
    url: `/health/delete/${id}`,
    method: 'get',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    }
  })
}
// 编辑
export function updateHealth(data) {
  return request({
    url: '/health/update',
    method: 'post',
    data: data
  })
}

// 添加
export function saveHealth(data) {
  return request({
    url: '/health/save',
    method: 'post',
    data: data
  })
}
